<?php
namespace Admin\Model;
use Think\Model;
class UserModel extends Model {
   protected $_validate = array(
        array('username','require','用户名必填！'), //默认情况下用正则进行验证
        array('password','require','密码必填！'), //默认情况下用正则进行验证
        array('captcha','require','验证码必填！'), //默认情况下用正则进行验证     
    );

}